package com.fenghongzhang.day003_mvp.mvp.contract;

import androidx.lifecycle.Observer;

import com.fenghongzhang.day003_mvp.entity.Food;
import com.fenghongzhang.lib.mvp.model.IModel;
import com.fenghongzhang.lib.mvp.view.IView;

import java.util.List;

import okhttp3.Callback;

/**
 * 主要是放model 和 view 交互的接口
 */
public interface FoodContract {

    //model 下载数据
    interface IFoodModel extends IModel{
       void getFoodData(Callback callback);

    }

    //view 展示数据
    interface IFoodView extends IView{
        void showFood(List<Food.DataBean> food);
    }
}
